package com.xy.p2p.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.xy.common.page.Pagination;
import com.xy.common.security.BadCredentialsException;
import com.xy.common.security.UsernameNotFoundException;
import com.xy.core.service.BaseService;
import com.xy.p2p.model.Tmember;

public abstract interface TmemberService extends BaseService<Tmember> {
	public abstract boolean checkExist(String paraName, String paraValue);

	public abstract List<Tmember> getTmember(Map<String, Object> map);

	public abstract Pagination getTmemberByPage(Map<String, Object> map, int pageNo, int pageSize);

	public Tmember login(HttpServletRequest request, String username, String password) throws UsernameNotFoundException, BadCredentialsException;

	public boolean updateMemberInfo(Tmember tmember);
	
	public String modifyPWD(Long mid,String oldpwd, String newpwd);

	public abstract String modifyTPWD(Long memberid, String parameter, String newpwd);
	
	public void sendEmail(Tmember tmember);
}